package com.atguigu.gmall.payment.service;

import org.springframework.web.bind.annotation.ResponseBody;


public interface AlipayService {

    String createaliPay(Long orderId);

    /**
     * 退款
     * @param orderId
     * @return
     */
    Boolean refund(Long orderId);

    /***
     * 关闭交易，支付宝关闭交易
     * @param orderId
     * @return
     */
    Boolean closePay(Long orderId);


    /**
     * 根据订单查询是否支付成功！查询支付交易记录
     * @param orderId
     * @return
     */
    Boolean checkPayment(Long orderId);

}
